<div class="iems view">
<h2><?php  __('Iem');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dane'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['dane']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Numero Sedes'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['numero_sedes']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Direccion'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['direccion']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Zona'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($iem['Zona']['id'], array('controller' => 'zonas', 'action' => 'view', $iem['Zona']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Telefono'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['telefono']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Celular'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['celular']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre Rector'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['nombre_rector']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Telefono Rector'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['telefono_rector']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Celular Rector'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['celular_rector']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Correo Rector'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['correo_rector']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $iem['Iem']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Iem', true), array('action' => 'edit', $iem['Iem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Iem', true), array('action' => 'delete', $iem['Iem']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $iem['Iem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Iems', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Iem', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Zonas', true), array('controller' => 'zonas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Zona', true), array('controller' => 'zonas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sedesiems', true), array('controller' => 'sedesiems', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sedesiem', true), array('controller' => 'sedesiems', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Sedesiems');?></h3>
	<?php if (!empty($iem['Sedesiem'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Dane'); ?></th>
		<th><?php __('Coordinador Sede'); ?></th>
		<th><?php __('Barrio'); ?></th>
		<th><?php __('Telefono'); ?></th>
		<th><?php __('Celular'); ?></th>
		<th><?php __('Naturaleza'); ?></th>
		<th><?php __('Calendario'); ?></th>
		<th><?php __('Ubicacion'); ?></th>
		<th><?php __('Iem Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($iem['Sedesiem'] as $sedesiem):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sedesiem['id'];?></td>
			<td><?php echo $sedesiem['nombre'];?></td>
			<td><?php echo $sedesiem['dane'];?></td>
			<td><?php echo $sedesiem['coordinador_sede'];?></td>
			<td><?php echo $sedesiem['barrio'];?></td>
			<td><?php echo $sedesiem['telefono'];?></td>
			<td><?php echo $sedesiem['celular'];?></td>
			<td><?php echo $sedesiem['naturaleza'];?></td>
			<td><?php echo $sedesiem['calendario'];?></td>
			<td><?php echo $sedesiem['ubicacion'];?></td>
			<td><?php echo $sedesiem['iem_id'];?></td>
			<td><?php echo $sedesiem['user_id'];?></td>
			<td><?php echo $sedesiem['created'];?></td>
			<td><?php echo $sedesiem['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'sedesiems', 'action' => 'view', $sedesiem['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'sedesiems', 'action' => 'edit', $sedesiem['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'sedesiems', 'action' => 'delete', $sedesiem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sedesiem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sedesiem', true), array('controller' => 'sedesiems', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
